package com.firecontroller.login;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.firecontroller.common.base.BaseActivity;
import com.qmuiteam.qmui.widget.roundwidget.QMUIRoundButton;

/**
 * 登录首屏
 * Author：Yutianran on 2018/10/2 上午11:12
 */
@Route(path = "/login/LoginHomeActivity")
public class LoginHomeActivity extends BaseActivity {

    private TextView title;
    private ImageView bg;
    private QMUIRoundButton login;
    private QMUIRoundButton register;
    private TextView desc;
    private LinearLayout container;
    private TextView wxIcon;
    private TextView wxText;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.login_main);
        initView();
        setView();
    }

    private void initView() {
        title = (TextView) findViewById(R.id.title);
        bg = (ImageView) findViewById(R.id.bg);
        login = (QMUIRoundButton) findViewById(R.id.login);
        register = (QMUIRoundButton) findViewById(R.id.register);
        desc = (TextView) findViewById(R.id.desc);
        container = (LinearLayout) findViewById(R.id.container);
        wxIcon = (TextView) findViewById(R.id.wx_icon);
        wxText = (TextView) findViewById(R.id.wx_text);
    }

    private void setView() {
        login.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                ARouter.getInstance().build("/login/LoginActivity").navigation();
            }
        });
    }
}
